//
//  TopicListSectionHeader.h
//  BaseProject
//
//  Created by 王洋 on 2020/12/11.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonPostModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, TopicSectionHeaderActionType) {
    //eva
    TopicSectionHeaderActionType_eva,
    //thumb
    TopicSectionHeaderActionType_thumb
};

@interface TopicListSectionHeader : UIView


@property (weak, nonatomic) IBOutlet UIImageView *userIcon;

@property (weak, nonatomic) IBOutlet UILabel *userName;

@property (weak, nonatomic) IBOutlet UILabel *timeLab;

@property (weak, nonatomic) IBOutlet UILabel *contentLab;

@property (weak, nonatomic) IBOutlet UIButton *tagBtn;


@property (weak, nonatomic) IBOutlet UIButton *evaBtn;

@property (weak, nonatomic) IBOutlet UIButton *thumbBtn;


@property (nonatomic, copy) void(^TopicListSectionHeaderBlock)(TopicSectionHeaderActionType type);

+ (CGFloat)calculateHeightWithModel:(CommonPostModel *)model;

- (void)fillWithModel:(CommonPostModel *)model;

@end

NS_ASSUME_NONNULL_END
